#pragma once
#include "iattack.h"

class Warrior
{
public:
    virtual ~Warrior(){};
    
    virtual void Attack() { m_pw->Attack(); }
    virtual void SetWeapon(std::shared_ptr<IWeaponBehaiver> pw){ m_pw = pw; }
    
private:
    std::shared_ptr<IWeaponBehaiver> m_pw;
};

